package org.dromara.common.translation.holder;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RequestContext {

    private  String requestId;

    private Set<String> contextKeys = new HashSet<>();

    private  String url;

    private boolean isListRequest = false;

    private boolean isFirstTranslation = true;

    public boolean isFirstTranslation() {
        return isFirstTranslation;
    }
    public void setIsFirstTranslation(boolean isFirstTranslation) {
        this.isFirstTranslation = isFirstTranslation;
    }

    public boolean isListRequest() {
        return isListRequest;
    }

    public void setIsListRequest(boolean isListRequest) {
        this.isListRequest = isListRequest;
    }
}
